/*
** 1003.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Fri Sep  5 11:47:02 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/*#include "1003.h"*/
#include <stdio.h>

int main()
{
     float total_length;
     double sum_length;
     
     int i, blocks;
     
     while(scanf("%f", &total_length) == 1){
	  i = 1;
	  sum_length = 0;
	  
	  while (sum_length <= total_length){
	       ++i;
	       sum_length += (float)(1/(float)i);
	  }
	  if (total_length > 0)
	       printf("%d card(s)\n", --i);
     }
     
     return 0;
}
